<%--
  Created by IntelliJ IDEA.
  User: willy
  Date: 2022/4/7
  Time: 15:13
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>新增课程</title>
</head>
<body>
<form action="CourseController" method="post">
    <table>
        <tr>
            <td>课程名称</td><td><input name="cName" id="cName" type="text"></td>
        </tr>
        <tr>
            <td>选课人数</td><td><input name="cNum" id="cNum" type="text"></td>
        </tr>
        <tr>
            <td>课程性质</td><td><select id="cType" name="cType">
            <option value="0">---请选择---</option>
            <option value="1">必修</option>
            <option value="2">选修</option>
        </select></td>
        </tr>
    </table>
    <% String s="add";
    request.getSession().setAttribute("course",s);
    request.getSession().setAttribute("hitcourse","");%>
    <input name="新增课程" type="submit" value="新增课程">
</form>
</body>
</html>
